/*
Copyright (c) 2010 Andreas Bjerkeholt
License: MIT
http://www.opensource.org/licenses/mit-license.php
*/
#ifndef __gamefield_h__
#define __gamefield_h__

#include <stdint.h>

#define LEVELSIZE 32

extern uint8_t tilesLayer1[];
extern uint8_t tilesLayer2[];

extern int8_t   tileOffsetX;
extern int8_t   tileOffsetY;
extern uint8_t  tileFieldOffsetX;
extern uint8_t  tileFieldOffsetY;
extern uint8_t  tilesVisibleWidth;
extern uint8_t  tilesVisibleHeight;

uint8_t getTile(uint8_t x, uint8_t y, uint8_t layer);
void setTile(uint8_t x, uint8_t y, uint8_t layer, uint8_t tile);

#endif
